import re
def text_clear(text):
    text = text.lower()
    text = re.sub(r'[^a-z0-9]+', ' ', text)
    text = re.sub(r' +', ' ', text)
    text = text.strip()
    return text